package com.woniu.staff.client;

import com.woniu.model.Result;
import com.woniu.staff.client.dto.StationDto;
import com.woniu.staff.cliententity.dto.AccountDto;
import com.woniu.staff.cliententity.form.AccountLoginForm;
import com.woniu.staff.cliententity.form.AddAccountForm;
import com.woniu.staff.cliententity.model.Account;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "station-server",path = "/station")
public interface StationClient {
    /**
     * 根据站点id查询站点
     * id 站点id
     */
    @GetMapping("/station/byId/{id}")
    @ApiOperation("根据站点id查找站点")
    public Result<StationDto> byId(@PathVariable("id") Integer id);

}
